package hkust.lingx.csit5110.model;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import javax.persistence.Entity;

import com.google.appengine.api.datastore.Blob;

@Entity
public class MyShout {
  @PrimaryKey
  @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
  private String hashValue;

  @Persistent
  private String ipAddress;

  @Persistent
  Blob audioRecord;

  public MyShout() {
  }

  public MyShout(String ipAddress, Blob audioRecord) {
    this.ipAddress = ipAddress;
    this.audioRecord = audioRecord;
  }

  public Blob getAudioRecord() {
    return audioRecord;
  }

  public void setAudioRecord(Blob audioRecord) {
    this.audioRecord = audioRecord;
  }
}
